<!--

    Copyright (c) 2015-2018 Red Hat, Inc.
    This program and the accompanying materials are made
    available under the terms of the Eclipse Public License 2.0
    which is available at https://www.eclipse.org/legal/epl-2.0/

    SPDX-License-Identifier: EPL-2.0

    Contributors:
      Red Hat, Inc. - initial API and implementation

-->
<div class="factory-from-file" layout="row" flex layout-align="start center">
  <che-label-container che-label-name="File">
    <div layout="row">
      <button ng-disabled="factoryFromFileCtrl.uploader.queue.length > 0 || factoryFromFileCtrl.uploader.isUploading" tabindex="0"
              id="upload-file-button"
              md-theme="default" ng-click="clickUpload()"
              class="md-accent md-raised md-hue-2 md-button">
        <span class="ng-scope">Upload file</span>
      </button>
      <input type="file" accept="application/json" uploader="factoryFromFileCtrl.uploader" nv-file-select/>
    </div>
  </che-label-container>
</div>
